import {PixelRatio, Platform} from "react-native";
import {setSpText2} from './utils/ScreenUtil';
// https://www.cnblogs.com/XYQ-208910/p/12040155.html
// https://blog.csdn.net/qq_31343581/article/details/82693369
// 像素密度　　　　　　　　　　　　 适用设备
// PixelRatio.get() === 1      mdpi Android devices (160 dpi)
// PixelRatio.get() === 1.5    hdpi Android devices (240 dpi)
// PixelRatio.get() === 2      iPhone 4, 4S, 5, 5c, 5s, 6, xhdpi Android devices (320 dpi)
// PixelRatio.get() === 3      iPhone 6 plus、xxhdpi Android devices (480 dpi)
// PixelRatio.get() === 3.5    Nexus 6

export const options = {
    window: {
        width: 0,
        height: 0,
    },
    pageSize: 100,
    readerSettings: {
        fontSize: 15/* + (Platform.OS === 'ios' ? 0 : PixelRatio.get() * 3)*/,
        lineHeight: 21/* + (Platform.OS === 'ios' ? 0 : PixelRatio.get() * 3)*/,
    },
};
